    <script type="text/javascript">

       $(function(){
           $(".help:eq(0)").attr('title','We use emails to safely deliver you to important information.');
           $(".help:eq(1)").attr('title','This will be your username (3-12 characters, no spaces).');
           $(".help:eq(2)").attr('title','To know how to contact you.');
           $(".help:eq(3)").attr('title','Choose a secret password to take advantage of all opportunities (6 or more characters, use numbers, punctuation marks).');




                     $('.help').tooltip({
                        track: true,
                        delay: 0,
                        showURL: false,
                        showBody: " - ",
                        extraClass: "fortitle",
                        fade: 250

                     });
       });
function enableSubmit()
{



    document.regForm.submit.disabled=true;
  if(document.regForm.enablesubm.checked==true)
  {
    document.regForm.submit.disabled=false;
    $(function(){ $('#reg-button').css('opacity','1');});
  }
  if(document.regForm.enablesubm.checked==false)
  {
    document.regForm.submit.enabled=false;
    $(function(){$('#reg-button').css('opacity','0.7');});
  }







}
</script>
<div class="forma-back2">
<form id="reg-form" name="regForm" action="<?= $this->element->getAction() ?>" method="<?= $this->element->getMethod() ?>">

    <p></p>
  <table class="formu2">
      <?$count=1?>

        <? foreach ($this->element->getElements() as $element): ?>
              <? $messages = $element->getMessages(); ?>
               <? if (count($messages)): ?>


                        <? foreach ($messages as $message): ?>
                        <tr class="error"><td colspan="2" ><?= $message ?></td></tr>
                        <? endforeach; ?>


                <? endif; ?>




        <tr>

            <td style="text-align: left;padding-right: 10px;"><?= $element->getLabel() ?></td>



            <?if (($element->getName()=='day')||($element->getName()=='month')||($element->getName()=='year')) continue;?>

            <td style="padding-top: 1px;">
                <?= $element ?>
                <?if (($element->getName()=='email')||($element->getName()=='nick')||($element->getName()=='gender')||($element->getName()=='password')):?>
            <td style="padding:0px 88px 10px 5px"><span class="help" >?</span></td>
            <?endif?>
               <?if ($element->getName()=='gender'):?>
                <tr><td style="text-align: left;">Birsday:</td><td class="birthday"><?= $this->element->day?><?= $this->element->month?><?= $this->element->year?></td></tr>
               <?endif?>
           </td>

         </tr>
        <?$count++?>
        <? endforeach; ?>

    </table>








<input name="enablesubm" type="checkbox" onclick="enableSubmit()" value="yes" >
<a href="/page/7" target="_blank" style="text-decoration: underline">I accept the terms</a>
<b style="color:#ff0000">*</b>
    <a id="join">
        <br>
        <br> <input type="submit" id="reg-button" name="submit" disabled="disabled" style="opacity: 0.7"  value="Join for free now" >

    </a>

</form>


</div>



